<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>客户配置</title> 
<%@ include file="/page/include.jsp"%>
</head>
<body class="nav-md">
	<div class="container body">
		<div class="main_container">
			<div class="framebody" role="main">
				<div class="row">
					<div class="col-md-12 col-sm-12 col-xs-12">
						<div class="x_panel"> 
							<div class="x_content">
							 	<div class="tabbable">
									<ul class="nav nav-tabs" id="myTabs">
										<li class="active">
											<a data-toggle="tab" href="#customerLevel">
												客户级别配置
											</a>
										</li>
										<!-- <li>
											<a data-toggle="tab" href="#customerType">
												客户类型配置
											</a>
										</li> -->
										<li>
											<a data-toggle="tab" href="#marketLevel">
												市场等级配置
											</a>
										</li>
										<li>
											<a data-toggle="tab" href="#customerField">
												客户自定义属性配置
											</a>
										</li>
									</ul>

									<div class="tab-content">
										<!-- 客户级别配置 -->
										<div id="customerLevel" class="tab-pane in active">
											<div class="x_panel"> 
												<div class="x_content">
													<div class="row" style="padding-bottom: 10px;">
														<a id="btnAdd_customerLevel" class="btn btn-success btn-sm"><i class="fa fa-plus fa-fw"></i>新增</a>
													</div>
													<div class="row">
														<table id="customerLevelTable" ></table>
													</div>
												 </div>
											</div>
										</div>
										<!-- 客户类型配置 -->
										<!-- <div id="customerType" class="tab-pane">
											<div class="x_panel"> 
												<div class="x_content">
													<div class="row">
														<a id="btnAdd_customerType" class="btn btn-success btn-sm"><i class="fa fa-plus fa-fw"></i>新增</a>
													</div>
													<div class="row">
														<table id="customerTypeTable" ></table>
													</div>
												 </div>
											</div>
										</div> -->
										<!-- 市场等级配置 -->
										<div id="marketLevel" class="tab-pane">
											<div class="x_panel"> 
												<div class="x_content">
													<div class="row" style="padding-bottom: 10px;">
														<a id="btnAdd_marketLevel" class="btn btn-success btn-sm"><i class="fa fa-plus fa-fw"></i>新增</a>
													</div>
													<div class="row">
														<table id="marketLevelTable" ></table>
													</div>
												 </div>
											</div>
										</div>
										<!-- 客户自定义属性配置 -->
										<div id="customerField" class="tab-pane">
											<div class="x_panel"> 
												<div class="x_content">
													<div class="row">
														<div class="col-md-12 col-sm-12 col-xs-12">
															<div class="x_panel">
																<div class="x_title">
																	<h2>
																		<i class="fa fa-pencil fa-fw"></i>查询条件 <small></small>
																	</h2> 
																	<div class="clearfix"></div>
																</div>
																
																<div class="x_content">
																	<form id="position-form" class="form-horizontal form-label-left">
																	
																		<div class="form-group">
																			
																			<label class="control-label col-md-1" for="roleName">字段名称 :
																			</label>
																			<div class="col-md-2">
																				<input type="text" id="fieldName" name="fieldName" class="form-control col-md-12"/>
																				<!-- 防止bootstrap的form表单回车刷新 -->
																				<input type="text" style="display:none"/>
																			</div>
																			<div class="pull-right">
																				<a class="btn btn-danger" id="btnClear_customField"><i class="fa fa-trash-o fa-fw"></i>清空</a> 
																				<a class="btn btn-primary search" id="btnQuery_customField"><i class="fa fa-search-plus fa-fw"></i>查询</a>
																			</div>
																		</div>
																	</form>
																</div>
															</div>
														</div>
													</div>
									
													<div class="row">
														<div class="col-md-12 col-sm-12 col-xs-12">
															<div class="x_panel">
																<div class="x_title">
																	<h2>
																		<i class="fa fa-reorder fa-fw"></i>客户属性自定义列表 <small></small>
																	</h2>
																	<div class="clearfix">
																		<div class="pull-left"></div>
																	</div>
																</div>
																
																<div class="x_content">
																	<div class="row" style="padding-bottom: 10px;">
																		<a class="btn btn-success btn-sm" id="btnAdd_customField"><i class="fa fa-plus fa-fw"></i>新增</a>
																	</div>
																	<div class="row">
																		<table id="customerCustomFieldTable" class="table"></table>
																	</div>
																</div>
															</div>
														</div>
													</div>
												 </div>
											</div>
										</div>
										
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<input type="hidden" id="layer_opt_status" />
			</div>
		</div>
	</div>
	<script src="${rootPath}/statics/plugins/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js"></script>
	<script src="${rootPath}/js/customer/customerSetting.js"></script>
</body>
</html>